export default {
    namespaced: true,
    state: {
        userInfo: {
            token: '',
            username: ''
        }
    },
    mutations: {
        setUserInfo(state, userInfo) {
            state.userInfo = userInfo;
        },
        clearUserInfo(state) {
            state.userInfo = {
                token: '',
                username: ''
            }
        }
    },
    actions: {
    },
    getters: {
    }
}